require.config({
    paths: {
        async: '../utiltool/requirejs-plugins/async',
        'BMap': 'http://api.map.baidu.com/api?v=2.0&ak=9whTPxXrl8zvW3gjiAaoPa59gFekKK9I'
    },
    shim: {
        'BMap': {
            deps: ['jquery'],
            exports: 'BMap'
        }
    }
})

//调用百度地图
define(['jquery', 'async!BMap'], function () {
        var map = new BMap.Map("map");
        var point = new BMap.Point(108.95344, 34.265664); // 创建点坐标
        map.centerAndZoom("西安", 13);
        return map;
    });